package com.weiqiao.mall.service;

import com.weiqiao.mall.domain.GiftCardEntity;
import org.bson.conversions.Bson;

import java.util.List;


/**
 * @Description: 礼品卡
 * @Author: 陈忠强
 * @date: 2018/6/14.
 */
public interface IGiftService extends IBaseWeiXinService {


    /**
     * 通过id获取礼品卡
     *
     * @param card_id
     * @return
     */
    GiftCardEntity findGiftCardById(String card_id);

    /**
     * 通过id删除礼品卡
     *
     * @param company_id
     * @param card_id
     * @return
     */
    boolean deleteById(int company_id, String card_id);

    /**
     * 获取所有礼品卡
     *
     * @param filter
     * @return
     */
    List<GiftCardEntity> getAllGiftCardList(Bson filter);
}
